<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>添加用户</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	    <LINK href="<%=basePath%>/app/css/default.css" type=text/css rel=stylesheet>
	    <SCRIPT src="<%=path %>/app/js/validate.js" type=text/javascript></SCRIPT>
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <form id="form1" name="form1" method="post" action="/pre/user.do?userDis=addUser" onsubmit="return validate(this);">
	   <table width="60%" border="1" align="center">
	  <tr>
	    <td colspan="2"><div align="center">添加用户</div></td>
	  </tr>
	  <tr>
	    <td  align="center" width="20%">帐号</td>
	    <td width="80%"><input id="string" type="text" name="loginId" /><font color="red">*</font></td>
	  </tr>
	  <tr>
	    <td  align="center" >密码</td>
	    <td><input type="password" id="string" name="pwd" /><font color="red">*</font></td>
	  </tr>
	  <tr >
	    <td align="center">姓名</td>
	    <td><input type="text" id="string" name="userName" /><font color="red">*</font></td>
	  </tr>
	   <tr >
	    <td align="center">是否管理员</td>
	    <td>
		    <select name="isAdmin">
	  			<option value="0">否</option>
	  			<option value="1">是</option>
	  		</select> 
  		</td>
	  </tr>
	  <tr >
	    <td align="center">电子邮件</td>
	    <td><input type="text" id="Email" name="email" /></td>
	  </tr>
	   <tr>
	    <td  colspan="2"  align="center"><input type="submit" name="Submit2" value="提交"><input type="reset" name="Submit" value="重置"></td>
	  </tr>
	</table>
	</form>
  </body>
</html>
<script type="text/javascript">
<!--
function fieldArray() {
	this.a1 = new Array("帐号：","loginId","String","false","10","","");
	this.a2 = new Array("密码：","pwd","String","false","10","","");
	this.a3 = new Array("姓名：","userName","String","false","10","","");
	this.a4 = new Array("电子邮件：","email","Email","true","20","","");
}setLimit(form1);
//-->
</script>